<?php

class Previo {
    public $idPrevio;
    public $tipoPrevio;
    public $referencia;
    public $cliente;
    public $pedimento;
    public $contenedor;
    public $tipoContenedor;
    public $bl;
    public $mercancia;
    public $sellosOrigen;
    public $operadora;
    public $buque;
    public $facturas;
    public $proveedor;
    public $pais;
    public $noCajas;
    
    function __construct()
    {
        $this->idPrevio=0;
        $this->tipoPrevio="";
        $this->referencia="";
        $this->cliente="";
        $this->pedimento="";
        $this->contenedor="";
        $this->tipoContenedor="";
        $this->bl="";
        $this->mercancia="";
        $this->sellosOrigen="";
        $this->operadora="";
        $this->buque="";
        $this->facturas="";
        $this->proveedor="";
        $this->pais="";
        $this->noCajas="";
    }
    
    function mostrarCampos(){
       foreach($this as $key => $value) {
           echo "$key => $value\n";
       }
    }
}

?>
